This patch adds the argument check of "--ms_per_sample=" option. For
authorEwan Mellor <ewan@xensource.com>
Tue, 5 Sep 2006 16:06:02 +0000 (17:06 +0100)
committerEwan Mellor <ewan@xensource.com>
Tue, 5 Sep 2006 16:06:02 +0000 (17:06 +0100)
commitbd5b7756c33c8eabc7d946468c3cf0c8f1a264bc
treea99cdb4edbc67c6324ab20894ae671f6d724befa
parent8037b37752eb7d17b02650e0f6b3115a0e04de1a
This patch adds the argument check of "--ms_per_sample=" option. For
"--ms_per_sample=", a negative value should be invalid.

e.g.
% xenmon.py -n --ms_per_sample=-1
usage: xenmon.py [options]

xenmon.py: error: option --ms_per_sample: invalid negative value: '-1'

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
tools/xenmon/xenmon.py